/**
 * (created at 2011-2-18)
 */
package qiushuo.mysqlparser.ast.statement;

import qiushuo.mysqlparser.generator.SQLType;

/**
 * @author <a href="mailto:QiuShuo1985@gmail.com">QIU Shuo</a>
 */
public class MTLCommitStatement implements Statement {
    /** false if commit */
    private final boolean rollback;
    private final boolean chain;
    private final boolean release;
    private final boolean no;

    public MTLCommitStatement(boolean rollback, boolean chain, boolean release, boolean no) {
        super();
        this.rollback = rollback;
        this.chain = chain;
        this.release = release;
        this.no = no;
    }

    public boolean isRollback() {
        return rollback;
    }

    public boolean isChain() {
        return chain;
    }

    public boolean isRelease() {
        return release;
    }

    public boolean isNo() {
        return no;
    }

    @Override
    public String generateSql(SQLType type) {
        // QS_TODO gen sql
        throw new UnsupportedOperationException("not implemented yet");
    }

}
